<template>
  <div id="app">
  	<loading v-model="isLoading">
  	</loading>
    <router-view></router-view>
  </div>
</template>

<script>
import { Loading } from 'vux'
import { mapState } from 'vuex'
import store from './vuex/store.js'
export default {
	components: {
    	Loading
  	},
  	computed: {
	    ...mapState({
	      isLoading: state => state.app.loading
	    })
	},
  	name: 'app',
  	store
}
</script>

<style lang="less">
@import '~vux/src/styles/reset.less';
@import '~vux/src/styles/1px.less';
@import './styles/index.less';

body {
  background-color: #fafafa;
}
</style>
